#include "cfd_utils.h"

/* Those functions were inlined to save the function calls */

inline int is_fluid(int flag)
{
	return ( (flag & MASK) == C_F ? 1 : 0 );
}

inline int is_obstacle(int flag)
{
	return ( (flag & MASK) == C_B ? 1 : 0 );
}

inline int is_empty(int flag)
{
	return ( (flag & MASK) == C_Y ? 1 : 0 );
}

inline int is_interior(int flag)
{
	return ( (is_fluid(flag)) && ((flag & I_MASK) == 0x0) ? 1 : 0 );
}
